package com.struct.factory{
	/**
	 * 创建者：薛恒杰
	 * 工程名称：Marbles
	 * 创建时间：Aug 6, 2012 3:58:38 PM
	 * 类说明：HallFactory.as,
	 */
	import com.struct.graph.hall.Hall;
	import com.struct.graph.hall.HallGraphWorker;
	
	import sacu.s.Factory;
	
	public class HallFactory extends Factory{
		private var hall:Hall;
		private var hallGW:HallGraphWorker;
		public function HallFactory(Name:String)
		{
			super(Name);
		}
		override protected function onInitFactory():void{
			super.onInitFactory();
			hall = new Hall();
			hallGW = new HallGraphWorker("HallGraphWorker", hall);
		}
		override protected function onStartFactory():void{
			registerGraphicsWorker(hallGW);
			SSA.application.uiLayer.addChild(hall);
		}
		override public function disposeFactory():void{
			super.disposeFactory();
			removeGraphicsWorker(hallGW.eName);
			SSA.application.uiLayer.removeChild(hall);
		}
	}
}